import axios from 'axios'
import { createAxiosInterceptor } from './tool/interceptor'

export const baseURL = import.meta.env.VITE_BASE_URL

export const http = axios.create({
  baseURL,
  timeout: 10000,
})

// 添加拦截器
createAxiosInterceptor(http)
